<template>
  <div>
    <van-nav-bar
  title="收藏列表"
  left-arrow
  @click-left="$router.back()"
/>
<van-list
  v-model="loading"
  :finished="finished"
  finished-text="没有更多了"
  @load="onLoad"
>
  <!-- <van-cell v-for="item in list" :key="item" :title="item" /> -->
  <list-i v-for="(item,index) in list" :key="index" :item="item"></list-i>
</van-list>
  </div>
</template>

<script>
import { CollectFn } from '@/api/user'
import ListI from '@/components/ListI.vue'
export default {
  components: {
    ListI
  },
  data () {
    return {
      list: [],
      loading: false,
      finished: false
    }
  },
  methods: {
    async onLoad () {
      const data = await CollectFn()
      this.list = data.body
      console.log(this.list)
      this.finished = true
    }
  }

}
</script>

<style>

</style>
